package com.example.studyplanning.servicesImpl;

import com.example.studyplanning.entity.Log;
import com.example.studyplanning.mapper.LogMapper;
import com.example.studyplanning.services.LogServices;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class LogServicesImpl implements LogServices {
    @Autowired
    private LogMapper logMapper;

    @Override
    public List<Log> findAllLog(Integer adminID) {
        return logMapper.findAllLog(adminID);
    }

    @Override
    public Integer insertLog(String logContent,Integer adminID) {
        return logMapper.insertLog(logContent,adminID);
    }

    @Override
    public Integer DelLog(Integer logID) {
        return logMapper.DelLog(logID);
    }
}
